import request from '@/utils/request'

// 查询评测人员列表
export function listTopicTask(query) {
  return request({
    url: '/evalution/topicTask/list',
    method: 'get',
    params: query
  })
}

//academylist
export function listTopicResult(query) {
  return request({
    url: '/evalution/topicTask/academylist',
    method: 'get',
    params: query
  })
}
// 查询评测人员详细
export function getTopicTask(evalutionTaskId) {
  return request({
    url: '/evalution/topicTask/' + evalutionTaskId,
    method: 'get'
  })
}

// 新增评测人员
export function addTopicTask(data) {
  return request({
    url: '/evalution/topicTask',
    method: 'post',
    data: data
  })
}

// 修改评测人员
export function updateTopicTask(data) {
  return request({
    url: '/evalution/topicTask',
    method: 'put',
    data: data
  })
}

// 删除评测人员
export function delTopicTask(evalutionTaskId) {
  return request({
    url: '/evalution/topicTask/' + evalutionTaskId,
    method: 'delete'
  })
}

// 导出评测人员
export function exportTopicTask(query) {
  return request({
    url: '/evalution/topicTask/export',
    method: 'get',
    params: query
  })
}
